<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <script>
      // 行首 行尾
      // const r1 = /^this\d/gm;
      const r1 = /\drow$/gm;
      const str = `this1 is 1row
this2 is 2row
this3 is 3row`;
      console.log(str.match(r1));
    </script>
  </body>
</html>
